cmake_minimum_required(VERSION 3.10)


set(LIB_NAME cJSON)
set(LIB_TYPE STATIC)  # STATIC or SHARED or INTERFACE
set(LIB_SCOPE PUBLIC) # PUBLIC or PRIVATE or INTERFACE

# 调用函数创建库
ez_create_library(${LIB_NAME} ${LIB_TYPE} ${LIB_SCOPE}
    # The default search path for library related files is empty
    ${CMAKE_CURRENT_LIST_DIR}
)

target_link_directories(${LIB_NAME} ${LIB_SCOPE}

)

target_link_libraries(${LIB_NAME} ${LIB_SCOPE}

)

# Validate that ${LIB_NAME} code is compatible with C standard
# if(CMAKE_C_STANDARD LESS 11)
#     message(ERROR "Generated code requires C11 or higher")
# endif()

